<?php
if (!defined('IN_UkCMS'))
exit('No direct script access allowed');

class Index extends Admin_Controller {

	function __construct() {
		parent::__construct();
	}

	function index() {
		$this->load->view('index');
	}
	function top() {
		$this->load->helper('date');
		$warr = array("0" => '星期日',"1" => '星期一',"2" => '星期二',"3" => '星期三',"4" => '星期四',"5" => '星期五',"6" => '星期六');
		$timeStamp = time();
		$i = date("w", $timeStamp);
		$data['timeStamp'] = date("Y年m月d日 ", $timeStamp) . " " . $warr[$i];
		$this->load->view('top', $data);
	}
	function main($module="welcome") {
		$data['module'] = $module;
		$this->load->view('main', $data);
	}
	function menu($module="welcome") {
		$data['module'] = $module;
		$this->load->view('menu', $data);
	}
	function welcome() {
		$data['action_name'] = "欢迎页";
		$this->_template('main/sys_info', $data);
	}
	
	function profile(){
		$data['action_name'] = "个人资料";
		$this->_template('main/list', $data);
	}
}